package org.cc.vhr.utils;

import org.cc.vhr.model.Hr;
import org.springframework.security.core.context.SecurityContextHolder;
/**
 * @description: {TODO} 
 * @author: 新梦想.陈超
 * @date:  2022/5/25 下午5:38
 * @version: v1.0
 **/
public class HrUtils {
    public static Hr getCurrentHr() {
        return ((Hr) SecurityContextHolder.getContext().getAuthentication().getPrincipal());
    }
}
